/**
 * User: alesj
 * Date: 2005.6.2
 * Time: 15:51:05
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.generalynx.ecos.data.types;

import java.beans.PropertyEditorSupport;

public class StatusEditor extends PropertyEditorSupport {

    public String getAsText() {
        return getValue().toString();
    }

    public void setAsText(String text) throws IllegalArgumentException {
        setValue(Status.fromSwitchCode(new Integer(text)));
    }

}
